<?php 
/* SVN FILE: $Id$ */
/* Picture Test cases generated on: 2009-12-14 22:22:22 : 1260825742*/
App::import('Model', 'Picture');

class PictureTestCase extends CakeTestCase {
	var $Picture = null;
	var $fixtures = array('app.picture');

	function startTest() {
		$this->Picture =& ClassRegistry::init('Picture');
	}

	function testPictureInstance() {
		$this->assertTrue(is_a($this->Picture, 'Picture'));
	}

	function testPictureFind() {
		$this->Picture->recursive = -1;
		$results = $this->Picture->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Picture' => array(
			'id'  => 1,
			'path'  => 'Lorem ipsum dolor sit amet',
			'article_id'  => 1,
			'itext_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>